Alternative Python solution
Clean up counts test to use single assertion