image count on homepage

added a json view to give us an image count, and setup the ajax to
display it on the main page