starSet = {"A", "B", "C"};
    StringCount["ABAACAWABCAA", Repeated[Alternatives @@ starSet, {5}], 
                Overlaps -> False]
>     2