List Counter Reset

Hello All,

I want to show list of record count on top of table records. It is displayed list of count correct. But I have written one function that call on Search & Reset Button call In every case when I searched the list I get count of records and I am displayed it on list counter.But when I call reset button I am unable to reset list counter. In actual I have created one more variable set its datatype as list and make it empty and pass it to the list on reset button click.So it reset the list but unable to reset the list counter. Because I have set total rowcount = query result.count. That's why its not list count not reset.
Please help me.
Hi Pradip

Can you please share your OML so that I can take a quick look?