add counter to initialize message