How to get total number of rows in Gtkmm TreeStore

I have raised a separate issue for TreeView not getting erasing the previous rows after I do TreeStore->clear() here TreeStore clear not erasing the previous data. Please do help in case you know how to correct it