input: Write a function to count the number of presidents who served more than one term.
  assert count_two_term_presidents(presidents) == 14
  assert count_two_term_presidents({"George Washington": 1, "Thomas Jefferson": 2}) == 1
  assert count_two_term_presidents({"Abraham Lincoln": 2, "James Madison": 2, "John Adams": 1}) == 2
output: def count_two_term_presidents(presidents):
      return sum(1 for terms in presidents.values() if terms > 1)