Write a function to count the number of islands in a 2D grid of '1's and '0's. - AgentRoast Arena