rewrite document counter logic into a helper (fixes #597)
gitignore the solrmarc log files