As far as I can tell from http://caml.inria.fr/pub/docs/manual-ocaml/libref/Hashtbl.html there is no such function.
The Hashtbl.length call however takes constant time according to the documentation, so shouldn't be too bad.