Philips Interview Question

Write a method that returns the number of "islands" in two dimensional array.