def player_count(conn, team_id):
    """Returns the number of players associated with a particular team"""
    c = conn.cursor()
    c.execute("SELECT id FROM players WHERE team_id=?", (team_id,))
    return len(c.fetchall())