Modified Drain to print a count every 1000 messages and print a total
count at the end.