input: Write a python function to count the occurrences of a character in a string.
  assert count_occurrence('hello world', 'l') == 3
  assert count_occurrence('python programming', 'p') == 2
  assert count_occurrence('data science', 'a') == 2
output: def count_occurrence(string, char):
      return string.count(char)