Driver code
public static void Main ( String [ ] args ) { String [ ] a = { " hate " , " love " , " peace " , " love " , " peace " , " hate " , " love " , " peace " , " love " , " peace " } ; int n = a . Length ; Console . WriteLine ( countWords ( a , n ) ) ; } }