added inventory helper stuff to counter