using CountPages inside a ListPages module