original_string: public function GetCountForRole($RoleID = '') {
        if (!is_array($RoleID))
           $RoleID = array($RoleID);
        
        return $this->SQL
           ->Select('a.ActivityID', 'count', 'ActivityCount')
           ->From('Activity a')
           ->Join('ActivityType t', 'a.ActivityTypeID = t.ActivityTypeID')
           ->Join('UserRole ur', 'a.ActivityUserID = ur.UserID')
           ->WhereIn('ur.RoleID', $RoleID)
           ->Where('t.Public', '1')
           ->Get()
           ->FirstRow()
           ->ActivityCount;
     }
code: public function GetCountForRole($RoleID = '') {
        if (!is_array($RoleID))
           $RoleID = array($RoleID);
        
        return $this->SQL
           ->Select('a.ActivityID', 'count', 'ActivityCount')
           ->From('Activity a')
           ->Join('ActivityType t', 'a.ActivityTypeID = t.ActivityTypeID')
           ->Join('UserRole ur', 'a.ActivityUserID = ur.UserID')
           ->WhereIn('ur.RoleID', $RoleID)
           ->Where('t.Public', '1')
           ->Get()
           ->FirstRow()
           ->ActivityCount;
     }
code_tokens: public function GetCountForRole ( $ RoleID = '' ) { if ( ! is_array ( $ RoleID ) ) $ RoleID = array ( $ RoleID ) ; return $ this -> SQL -> Select ( 'a.ActivityID' , 'count' , 'ActivityCount' ) -> From ( 'Activity a' ) -> Join ( 'ActivityType t' , 'a.ActivityTypeID = t.ActivityTypeID' ) -> Join ( 'UserRole ur' , 'a.ActivityUserID = ur.UserID' ) -> WhereIn ( 'ur.RoleID' , $ RoleID ) -> Where ( 't.Public' , '1' ) -> Get ( ) -> FirstRow ( ) -> ActivityCount ; }
docstring: Get number of activity related to a particular role.
  
  @since 2.0.18
  @access public
  @param int $RoleID Unique ID of role.
  @return int Number of activity items.
docstring_tokens: Get number of activity related to a particular role .