got the get_counts_per_pixel() function working. This means I can bin the number of events in a spatial grid.