Counting rows in a filtered liststore

hi,

i have a liststore filtered with treemodelfilter, and i’d like to inform
the user about row counts like “filtered_row_count/total_row_count”.
i can’t find a method for it in the docs.
i thought, i could count them, with an i=i+1 in the model.each, but i
was hoping for something faster.
i asked the #gtk+ on gimpnet, they suggested iter_n_children with iter
== NULL , but that was implemented in ruby-gtk2 as iter.n_children,
so i should position an iter to the ROOT, and then i can count it’s
children, but how can i position the ROOT of a liststore?

i’m stuck with this one, any suggestions?

balint