this could be `$count = $query->select(['count' => $query->count('*')])->hydrate(false)->first()['count']`;