updated demo, added page count