makeDensityMatrix function

Compute a matrix of counts from a list of x,y positions