/** * Counts the number of beans of type $type. * This method accepts a second argument to modify the count-query. * A third argument can be used to provide bindings for the SQL snippet. * * @param string $type type of bean we are looking for * @param string $addSQL additional SQL snippet * @param array $bindings parameters to bind to SQL * * @return integer */ public static function count($type, $addSQL = '', $bindings = array()) { return Facade::$redbean->count($type, $addSQL, $bindings); }