Count Vessels in a Service-Footprint Grid
An ocean-monitoring team stores a service footprint as a rectangular grid. A `1` marks a tile occupied by a section of vessel, while a `0` marks open water. Sections belonging to one vessel touch through an edge: north, south, east, or west. Diagonal contact does not join sections.