def pictures(listing):
    """Score by number of images."""
    nimages = len(listing.images)
    if nimages == 0:
        return -500
    elif nimages == 1:
        return -200
    elif nimages < 4:
        return 0
    else:
        return 200