[4.2] Use assertCount

This is shorter and cleaner.