tern: log duplicate language version counts

This should help us get a handle on the duplicate language situation.  Are most
duplicate languages empty?  Is there usually one that has lots of versions while
the rest have few?  I don't know.  Let's find out.
(cherry picked from commit a9a57f1fb7384dfd3f92fe41aad2a2a5f47e5e5e)