How set count, and use same factory per message type.
How set count, and use same factory per message type.