Count Non-Overlapping Pattern Matches — Coding Problem — CareerVerse