add a method which counts  duplicate words