public function count($collection, $filter = []) { return $this->getCollection($collection)->count($filter); }