ST Engineering Aerospace is validating a tournament scheduler for a competition involving aircraft maintenance teams. In a single round-robin tournament, every team plays every other team exactly once. Given the number of teams, calculate the total number of matches without simulating the schedule.
Implement count_matches(team_count):
team_count, a positive integer representing the number of teams.def count_matches(team_count):