First attempt to fix count_geo_img.py.