Changed script to output to stdout only when the number of
confirmations has changed.