check number of items on scroll change