Hi, As per docs https://docs.phalcon.io/en/3.3/db-models
the find() method returns a Phalcon\Mvc\Model\Resultset\Simple. This is an object that encapsulates all the functionality a resultset has like traversing, seeking specific records, counting, etc.
Say I have a "units" table with type as big , small, large.
I can do
$result = Units::find():
$totalRecords = $result->count();
However, is it possible to find total on the basis of type ie. how many large , small and big units are in there from resultset itself and without making another query to DB ?