There’s a few ways you could do this but your issue is that if you are using both column as groupings you don’t have any columns left to do an aggregation.
The simplest way is just introduce another column, here I use the Constant Value Column, to add an extra column. The contents are not important but now you can use this extra column to do a count.