This is a rather meaningless comparison, since the differences are going to be dominated by: 1) The choice of libraries/datatypes used for strings and word->count map 2) How the source file is split into words - probably library function again, although in C/C++ one could choose to implement a super-optimized low level version that would blow the others away IMO a performance comparison between languages is only mean…
Do you have a particular example problem in mind that might demonstrate language performance better? One of the Benchmark Game programs maybe?
In the end it either boils down to compiler optimisations or library implementations.