public static function _count ($params = array (), &$db = FALSE)
	{
		
		// Remove order

		if (isset ($params['orderby']))
		{
			unset ($params['orderby']);
		}
		
		// Remove limit

		if (isset ($params['limit']))
		{
			unset ($params['limit']);
		}

		// Select count

		$params['select'] = 'COUNT(*)';
		
		// Return
		
		return static::_getValue ($params, \PDO::FETCH_ASSOC, $db);

	}
public static function _count ($params = array (), &$db = FALSE)
	{
		
		// Remove order

		if (isset ($params['orderby']))
		{
			unset ($params['orderby']);
		}
		
		// Remove limit

		if (isset ($params['limit']))
		{
			unset ($params['limit']);
		}

		// Select count

		$params['select'] = 'COUNT(*)';
		
		// Return
		
		return static::_getValue ($params, \PDO::FETCH_ASSOC, $db);

	}
public static function _count ( $ params = array ( ) , & $ db = FALSE ) { // Remove order if ( isset ( $ params [ 'orderby' ] ) ) { unset ( $ params [ 'orderby' ] ) ; } // Remove limit if ( isset ( $ params [ 'limit' ] ) ) { unset ( $ params [ 'limit' ] ) ; } // Select count $ params [ 'select' ] = 'COUNT(*)' ; // Return return static :: _getValue ( $ params , \ PDO :: FETCH_ASSOC , $ db ) ; }
Return the number of objects in the database matching the parameters
@param array $params Parameter array
@param \PDO $db Database connection to use
@return integer|boolean
Return the number of objects in the database matching the parameters