changed $this->model to self::$model in arraycount test