public function seeNumRecords($expectedNumber, $table, array $criteria = [])
    {
        $actualNumber = $this->countInDatabase($table, $criteria);
        $this->assertEquals(
            $expectedNumber,
            $actualNumber,
            sprintf(
                'The number of found rows (%d) does not match expected number %d for criteria %s in table %s',
                $actualNumber,
                $expectedNumber,
                json_encode($criteria),
                $table
            )
        );
    }
public function seeNumRecords($expectedNumber, $table, array $criteria = [])
    {
        $actualNumber = $this->countInDatabase($table, $criteria);
        $this->assertEquals(
            $expectedNumber,
            $actualNumber,
            sprintf(
                'The number of found rows (%d) does not match expected number %d for criteria %s in table %s',
                $actualNumber,
                $expectedNumber,
                json_encode($criteria),
                $table
            )
        );
    }
public function seeNumRecords ( $ expectedNumber , $ table , array $ criteria = [ ] ) { $ actualNumber = $ this -> countInDatabase ( $ table , $ criteria ) ; $ this -> assertEquals ( $ expectedNumber , $ actualNumber , sprintf ( 'The number of found rows (%d) does not match expected number %d for criteria %s in table %s' , $ actualNumber , $ expectedNumber , json_encode ( $ criteria ) , $ table ) ) ; }
Asserts that the given number of records were found in the database.

```php
<?php
$I->seeNumRecords(1, 'users', ['name' => 'davert'])
?>
```

@param int $expectedNumber Expected number
@param string $table Table name
@param array $criteria Search criteria [Optional]
Asserts that the given number of records were found in the database .