Fixes incorrect new count reset handling in item_state.c and
some of the node source implementations.