traverse forst to last node
else : NEW_LINE INDENT while ( True ) : NEW_LINE INDENT current = current . next NEW_LINE count = count + 1 NEW_LINE if ( current == head ) : NEW_LINE INDENT break ; NEW_LINE DEDENT DEDENT DEDENT return count NEW_LINE