Examples
Input: grid = [[1,0],[0,0],[0,1],[0,1],[1,1]]
Output: 2
Explanation: There are 2 islands formed by connecting adjacent lands
Input: grid = [[1,0,0],[1,1,1],[0,0,1]]
Output: 1
Explanation: There is one island formed by connecting adjacent lands
Input: grid = [[1,1,1],[0,0,0],[0,0,0]]
Output: 1
Explanation: There is one island formed by connecting adjacent lands