AFAIK `assertCount()` works only with arrays.