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