An island is a group of your pawns on neighbouring files, with an empty file on either side of it.
This group is healthy because the pawns inside it can defend each other, and defending costs nothing.
The same four pawns, moved onto different files. Now count the groups again.
a2 stands alone, that is one. Then d2 and e2 together, that is two. Then g2 alone, and that is three.
Nothing is attacking any of these pawns. The cost arrives later, and it is about who defends them.
Pawns in a group defend each other for free. A pawn standing alone has to be defended by a piece, and that piece then has nothing else to do.
So the rule is as short as rules get. Fewer islands is better, and it is worth about half a pawn per extra one.
Same material both times. One structure defends itself, and the other one needs looking after.
Four white pawns, standing on four files next to each other. That is one pawn island.