public function countShares($userid, $perm = Horde_Perms::SHOW, $attributes = null) { return count($this->_listShares($userid, array('perm' => $perm, 'attributes' => $attributes))); }