Return branch_id, status and accounts (how many accounts) for every combination that exists, for branches 1 to 3. Sort by branch_id, then status.
Hint 1
GROUP BY a, b creates a group for each distinct pair.
Reference solution
SELECT branch_id, status, COUNT(*) AS accounts
FROM accounts
WHERE branch_id BETWEEN 1 AND 3
GROUP BY branch_id, status
ORDER BY branch_id, status;
Each distinct combination of the grouping columns forms a group. Only combinations that actually occur appear in the result: if a branch has no frozen accounts there is no frozen row for it (to show zeros you would need a join with a list of all combinations).