public calculation ( string $type, mixed $query, array $options = [] ) : integer | null | ||
$type | string | Only accepts `count`. |
$query | mixed | The query to be executed. |
$options | array | Optional arguments for the `read()` query that will be executed to obtain the calculation result. |
return | integer | null | Result of the calculation or `null` if the calculation failed. |