Corrected logic for counting c&u messages.