Build a report grid of every account × every month that appears in transactions, with the number of transactions as txns (0 where there were none).
transactions
txns
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.