Asserts that DB record count should be equal to the expected value.