Revert "Revert "itemcounter""

This reverts commit fedf8d41f20c17fcb7f17cca9d705f455e2aadca.