Assert that a table in the database contains the given number of records:
$this->assertDatabaseCount('users', 5);