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