[basex-talk] Update functions - Error handling and counting