Check the message bag is countable
Use assertCount
Merge pull request #5998 from GrahamForks/5.0-count

[5.0] Use PHPUnit's assertCount