FWIW using static functions rather than methods may avoid object property lookup operations at runtime. The compiler may rename goog.object.getCount to a non-namespaced function.