Postgres Get Count Arcpy Intersect Definition