/* Returns: the number of nodes in the tree  */
guint g_node_n_nodes(GNode *root, GTraverseFlags flags)
/* Returns: the number of nodes in the tree  */
guint g_node_n_nodes(GNode *root, GTraverseFlags flags)
{
  guint n = 0;
  g_return_val_if_fail (root != NULL, 0);
  g_return_val_if_fail (flags <= G_TRAVERSE_MASK, 0);
  g_node_count_func (root, flags, &n);
  return n;
}