# number of connected sets [closed]

How many connected sets are there in the following array? $$\begin{array}{cccc} 1& 0& 0& 1\\ 0& 0& 0& 0\\ 0& 1& 1& 0\\ 1& 0& 0& 1 \end{array}$$

"Connected set" can be defined as group of cell(s) which has 1 mentioned on it and has at least one other cell in that set with which they share the neighbor relationship. A cell with 1 in it and no surrounding neighbor having 1 in it can be considered as a set with one cell in it. Neighbors can be defined as all the cells adjacent to the given cell in 8 possible directions ( i.e N , W , E , S , NE , NW , SE , SW direction ). A cell is not a neighbor of itself.

Actually i am stuck on this and not able to understand what the definition of connected set in this question means

-