Option to allow specified number of messages inside container