make publishcounts optional and off by default