Fixed bug in demo where counting started incorrectly on loading annots