fix testDownloadOntologyCounts and reduce logging for recursive counting