counter in PDF.JS
Closes #24: grid in PDF.JS