added count check to store update method