Created a simple scrollListener to know the number of elements displayed on the screen when the user scrolls.