public function grabNumRecords($table, $attributes = [])
    {
        return class_exists($table)? $this->countModels($table, $attributes) : $this->countRecords($table, $attributes);
    }
public function grabNumRecords($table, $attributes = [])
    {
        return class_exists($table)? $this->countModels($table, $attributes) : $this->countRecords($table, $attributes);
    }
public function grabNumRecords ( $ table , $ attributes = [ ] ) { return class_exists ( $ table ) ? $ this -> countModels ( $ table , $ attributes ) : $ this -> countRecords ( $ table , $ attributes ) ; }
Retrieves number of records from database
You can pass the name of a database table or the class name of an Eloquent model as the first argument.

``` php
<?php
$I->grabNumRecords('users', array('name' => 'davert'));
$I->grabNumRecords('App\User', array('name' => 'davert'));
?>
```

@param string $table
@param array $attributes
@return integer
@part orm
Retrieves number of records from database You can pass the name of a database table or the class name of an Eloquent model as the first argument .