implement items left counter