A site footprint counting function