/* Returns number of rules in the statement list.  */
gint cr_statement_nr_rules(CRStatement *a_this)
/* Returns number of rules in the statement list.  */
gint cr_statement_nr_rules(CRStatement *a_this)
{
        CRStatement *cur = NULL;
        int nr = 0;
        g_return_val_if_fail (a_this, -1);
        for (cur = a_this; cur; cur = cur->next)
                nr++;
        return nr;
}