added counter for all pages