Fixed redundant call for all images

Noticed that after infinite scroll returned all items that you could
still click on total item count and request all items from server.  I
changed both viewCount and totalCount functions to remove this
capability when total items equals viewable items.