Add page counter with failing tests