Driver code
public static void main ( String args [ ] ) { Node head = null ; head = insert ( head , 5 ) ; head = insert ( head , 7 ) ; head = insert ( head , 5 ) ; head = insert ( head , 1 ) ; head = insert ( head , 7 ) ; System . out . println ( countNode ( head ) ) ; } }