Visible list view length from another page.

Visible list view length from another page.

Hi, is it possible to do the following?  I have two pages, on the first one is a list view with four items but on the second page I want to find out how may items (the length) from this list view are visible from page-2. (initially 4).


Then if I hide one in page two and repeat the process it will give me the length of 3;

Thanks in advance.