imageCount is now a long