input: Write a function to count the number of routes in a Flask application.
  assert count_routes(app) == 4
  assert count_routes(create_test_app()) == 3  # Assuming create_test_app() creates a Flask app with 3 routes
output: def count_routes(app):
      return len(app.url_map._rules)