COUNT and GROUP BY via PHP SDK

I cant find it in the documentation (GitHub - manticoresoftware/manticoresearch-php: Official PHP client for Manticore Search) but does anyone know if it is possible to use the built in methods of the SDK to build the following query in stead of using the sql() method.

SELECT
field,
COUNT(*) AS amount
FROM
index
GROUP BY
field

There seems to no methods for COUNT and Group BY?

Looks like the PHP client, is mainly a wrapper around the HTTP API.

As such it seems to be part of Facets/Aggregation.
https://manual.manticoresearch.com/Searching/Faceted_search#HTTP

Which looks like it done via the adding a ‘facet’ to the query

Looks like facetting by an atttibute, sets up the count automatically.

Yes, Facets is what I was looking for, thx so much!!