Bugfix on assertCount()