Added scaffolding for count-items.
Implemented count-items.