Given a grid consisting of '0's(Water) and '1's(Land), find the number of islands.
Note: An island is surrounded by water and is formed by connecting adjacent lands horizontally, vertically, or diagonally. i.e., in all 8 directions.
Example:
Input:
grid = {{0,1},{1,0},{1,1},{1,0}}
Output:
1