/* @a_this: the current instance of #CRStatement. Returns the number of rules in the media rule;  */
int cr_statement_at_media_nr_rules(CRStatement *a_this)
/* @a_this: the current instance of #CRStatement. Returns the number of rules in the media rule;  */
int cr_statement_at_media_nr_rules(CRStatement *a_this)
{
        g_return_val_if_fail (a_this
                              && a_this->type == AT_MEDIA_RULE_STMT
                              && a_this->kind.media_rule, CR_BAD_PARAM_ERROR);
        return cr_statement_nr_rules (a_this->kind.media_rule->rulesets);
}