Added counter and error reporting to junccomp