Implement counting #18