How to count joined table?

I'm trying to count rows returned by join for a query, basically the same as this: https://dba.stackexchange.com/questions/110850/count-rows-with-inner-joined-tables

How to convert this to Drizzle? Any documentation I've missed regarding this kind of things?

SELECT t1.team_name,
       IFNULL(t2.num_players, 0) AS strength,
       t1.team_timestamp
FROM team t1
LEFT OUTER JOIN 
    (SELECT team_id, COUNT(team_id) AS num_players 
     FROM player 
     GROUP BY team_id
    ) t2
ON t1.team_id = t2.team_id
-- GROUP BY t1.team_id, t1.team_name, t1.season_id  -- **NOTE** - see discussion below
ORDER BY strength DESC, team_name ASC;  
Database Administrators Stack Exchange
I have 3 tables:

Players:

mysql> SELECT * FROM players;
+-----------+---------+----------------------+----------------------+-----------------+------------------------------+--------------...
Was this page helpful?