support count in close and restore tab