I need to get page count using WHERE clause
I calculate page count without WHERE but i can not understand the structure of calculations to get filtered result count