Check for the number of closed loops.
Check for the number of closed loops.