public void setImageCountChangeCallback(final Action2<ImageGalleryView, Integer> callback) {
        this.imageCountChangeCallback = callback;
    }
registers a callback which is triggered whenever the count of images displayed in gallery changes
main/src/main/java/cgeo/geocaching/ui/ImageGalleryView.java