Pergunta de entrevista da empresa Broadcom

Count the number of a specific pattern in a string. For example, given a string, find how "abc" there are in the string.