public function get_values_count($table, string $field = null, array $where = [], $order): array
  {
    return $this->count_field_values($table, $field, $where, $order);
  }
public function get_values_count($table, string $field = null, array $where = [], $order): array
  {
    return $this->count_field_values($table, $field, $where, $order);
  }
public function get_values_count ( $ table , string $ field = null , array $ where = [ ] , $ order ) : array { return $ this -> count_field_values ( $ table , $ field , $ where , $ order ) ; }
Return a string with the sql query to count equal values in a field of the table.

```php
\bbn\x::dump($db->get_values_count('table_users','name',['surname','=','smith']));
/*
(string)
SELECT COUNT(*) AS num, `name` AS val FROM `db_example`.`table_users`
GROUP BY `name`
ORDER BY `name`
```

@param string|array $table The table's name or a configuration array
@param string $field The field's name
@param array $where The "where" condition
@param array $order The "order" condition
@return array
Return a string with the sql query to count equal values in a field of the table .