Add printing by demand in addition to total counts