public function countServerTokens ( $consumer_key )
	{
		
                //
                $count =0;
                $sql = "BEGIN SP_COUNT_SERVICE_TOKENS(:P_CONSUMER_KEY, :P_COUNT, :P_RESULT); END;";

                // parse sql
                $stmt = oci_parse($this->conn, $sql) or die ('Can not parse query');

                // Bind In and Out Variables
                oci_bind_by_name($stmt, ':P_CONSUMER_KEY', $consumer_key, 255);
                oci_bind_by_name($stmt, ':P_COUNT', $count, 40);
                oci_bind_by_name($stmt, ':P_RESULT', $result, 20);
                
                //Execute the statement
                oci_execute($stmt);                
                //
		return $count;
	}
public function countServerTokens ( $consumer_key )
	{
		
                //
                $count =0;
                $sql = "BEGIN SP_COUNT_SERVICE_TOKENS(:P_CONSUMER_KEY, :P_COUNT, :P_RESULT); END;";

                // parse sql
                $stmt = oci_parse($this->conn, $sql) or die ('Can not parse query');

                // Bind In and Out Variables
                oci_bind_by_name($stmt, ':P_CONSUMER_KEY', $consumer_key, 255);
                oci_bind_by_name($stmt, ':P_COUNT', $count, 40);
                oci_bind_by_name($stmt, ':P_RESULT', $result, 20);
                
                //Execute the statement
                oci_execute($stmt);                
                //
		return $count;
	}
public function countServerTokens ( $ consumer_key ) { //
 $ count = 0 ; $ sql = "BEGIN SP_COUNT_SERVICE_TOKENS(:P_CONSUMER_KEY, :P_COUNT, :P_RESULT); END;" ; // parse sql
 $ stmt = oci_parse ( $ this -> conn , $ sql ) or die ( 'Can not parse query' ) ; // Bind In and Out Variables
 oci_bind_by_name ( $ stmt , ':P_CONSUMER_KEY' , $ consumer_key , 255 ) ; oci_bind_by_name ( $ stmt , ':P_COUNT' , $ count , 40 ) ; oci_bind_by_name ( $ stmt , ':P_RESULT' , $ result , 20 ) ; //Execute the statement
 oci_execute ( $ stmt ) ; //
 return $ count ; }
Count how many tokens we have for the given server

@param string consumer_key
@return int
Count how many tokens we have for the given server