Clear counter variable also when a Table object is cleared