To get multiple counts in a single SQL query, use COUNT() with GROUP BY or you can use conditional aggregation by summing up with SUM() and CASE expressions. Here are two ways:
Method 1:
SELECT col_name, COUNT(*) AS count
FROM table_name
GROUP BY col_name;
Method 2:
SELECT
COUNT(CASE WHEN condition1 THEN 1 END) AS count1,
COUNT(CASE WHEN condition2 THEN 1 END) AS count2,
COUNT(CASE WHEN condition3 THEN 1 END) AS count3
FROM table_name;