diff --git a/lib/Model.php b/lib/Model.php
index <HASH>..<HASH> 100644
--- a/lib/Model.php
+++ b/lib/Model.php
@@ -469,9 +469,9 @@ class Model extends AbstractModel implements ArrayAccess,Iterator,Serializable {
             $this->controller->setOrder($this,$field,$desc);
         return $this;
     }
-    function count(){
+    function count($alias = null){
         if($this->controller && $this->controller->hasMethod('count')) {
-            return $this->controller->count($this);
+            return $this->controller->count($this, $alias);
         } else {
             throw $this->exception('Model do not have controller or count() method not implemented in controller')
                 ->addMoreInfo('controller',$this->controller?$this->controller->short_name:'none');
Model: add optional alias parameter to generic Model too

Controllers can ignore this parameter, but why not pass it to them - just in case they know how to deal with it :)