Pull Request Dev_1.0

you can use $db->value() for this 
```
$count = $db->value($query, $where_params);

return $count;
```