public function count()
    {
        $sessionId = $this->getSessionId();
        $userId = $this->auth->id();

        return $this->cartItem->getWithBuilder($this->instance, $this->getSessionId(), $userId)->count();
    }
public function count()
    {
        $sessionId = $this->getSessionId();
        $userId = $this->auth->id();

        return $this->cartItem->getWithBuilder($this->instance, $this->getSessionId(), $userId)->count();
    }
public function count ( ) { $ sessionId = $ this -> getSessionId ( ) ; $ userId = $ this -> auth -> id ( ) ; return $ this -> cartItem -> getWithBuilder ( $ this -> instance , $ this -> getSessionId ( ) , $ userId ) -> count ( ) ; }
Get count of cart items
@return int
Get count of cart items