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