input: 
  from typing import List
  
  def summarize_pets(pets: List[str]) -> str:
      """Summarize the pets in the list by counting the number of each type of pet.
      The function should return a string with the format: "There are X cats, Y dogs, and Z others."
      If a pet is not a cat or a dog, it is considered an "other".
      >>> summarize_pets(['cat', 'dog', 'cat', 'fish'])
      'There are 2 cats, 1 dogs, and 1 others.'
      >>> summarize_pets(['fish', 'hamster', 'goldfish'])
      'There are 0 cats, 0 dogs, and 3 others.'
      """
  
output:     cat_count = pets.count('cat')
      dog_count = pets.count('dog')
      other_count = len(pets) - cat_count - dog_count
      return f"There are {cat_count} cats, {dog_count} dogs, and {other_count} others."