Add comments for functions, and add a Treap::count() member function.