input: Write a python function to count occurrences of a character in a given sentence.
  assert count_occurrences("hello world", "o") == 2
  assert count_occurrences("hello world", "l") == 3
  assert count_occurrences("hello world", "z") == 0
output: def count_occurrences(sentence, char):
      return sentence.count(char)