input: Write a python function to count occurrences of a character in a string.
  assert count_characters("hello world", "o") == 2
  assert count_characters("data science", "a") == 2
  assert count_characters("mississippi", "s") == 4
output: def count_characters(string, char):
      return string.count(char)