Number of Ships in a Rectangle