Added counter to show progress on pagination