input: Write a function to find the number of times a pattern appears in a given text.
  assert findPattern("ababcabcab", "ab") == 3
  assert findPattern("aaaaa", "aa") == 4
  assert findPattern("abcdef", "gh") == 0
output: def findPattern(text, pattern):
      count = 0
      pattern_length = len(pattern)
      
      for i in range(len(text) - pattern_length + 1):
          if text[i:i + pattern_length] == pattern:
              count += 1
      
      return count