increase totalObjects count only for new entry
add support to store and compare message counter