modify ticktackbase class
to add count