$|=<>;($x1,$x2,$y1,$y2)=glob,print"SELECT count(*) FROM point WHERE $x1<=x AND x<=$x2 AND $y1<=y AND y<=$y2;\n"for<>