Thanks to visit codestin.com
Credit goes to libdparse.dlang.io

Variable ParserConfig.errorCount

An optional pointer to a variable receiving the error count.

struct ParserConfig
{
  // ...
  uint* errorCount;
  // ...
}