input: Write a python function to count occurrences of a character in a string and another function to count non-overlapping occurrences of a character in a string.
  assert countOccurrences("hello world", 'o') == 2
  assert countOccurrences("hello world", 'l') == 3
  assert countOccurrences2("hello world", 'o') == 2
  assert countOccurrences2("hello world", 'l') == 1
output: def countOccurrences(s: str, char: str) -> int:
      return s.count(char)
  
  def countOccurrences2(s: str, char: str) -> int:
      return s.count(char) if char not in s else s.count(char) // len(char)