Tab counter