v.stats

Thanks. It does what I need.

However, I had to fix some bugs. I'll post
them. Just pointer problems and caused a core dump.

--Xin