If I run a Xquery (Basex 9.2) like this xquery:eval("count( db:open( \'someData\' )/child::* )", map{ }, map{\'permission\' : \'none\' }) in the GUI,
xquery:eval("count( db:open( \'someData\' )/child::* )", map{ }, map{\'permission\' : \'none\' })