Counts the no . of occurrences of a node ( search_for ) in a linked list ( head )
static int count ( Node head , int key ) { if ( head == null ) return frequency ; if ( head . data == key ) frequency ++ ; return count ( head . next , key ) ; }