Given a 2D grid representing a warehouse floor map, find the number of connected components (for example, obstacle zones or contiguous storage areas).