Yahoo Interview Question

Count the number of islands.