applications/vanilla/models/class.draftmodel.php
public function GetCount($UserID) {
      return $this->SQL
         ->Select('DraftID', 'count', 'CountDrafts')
         ->From('Draft')
         ->Where('InsertUserID', $UserID)
         ->Get()
         ->FirstRow()
         ->CountDrafts;
   }
public function GetCount($UserID) {
      return $this->SQL
         ->Select('DraftID', 'count', 'CountDrafts')
         ->From('Draft')
         ->Where('InsertUserID', $UserID)
         ->Get()
         ->FirstRow()
         ->CountDrafts;
   }
public function GetCount ( $ UserID ) { return $ this -> SQL -> Select ( 'DraftID' , 'count' , 'CountDrafts' ) -> From ( 'Draft' ) -> Where ( 'InsertUserID' , $ UserID ) -> Get ( ) -> FirstRow ( ) -> CountDrafts ; }
Gets number of drafts a user has.

@since 2.0.0
@access public

@param int $UserID Unique ID of user to count drafts for.
@return int Total drafts.
Gets number of drafts a user has .