changed logic for counting number of items, affecting the eventual lifti...

...ng of alerts