Added statistics for Java version.
(cherry picked from commit 81f62c2)