added count to track messages in logs. Log messages get intermixed..