output only when the count changes
use clog for info output and cout for data

so we can use a named pipe on just the data