Issue #3128814 by longwave, jungle, dww: Replace assert* involving count() and an equality operator with assertCount()
mentioned in commit d9a13249