updateHostCount function

Summarise position of hosts in a discrete or discretized (raster) space