To use the ShowMessageFmt method within the JSDialog unit then you would use it like:
JSDialog.ShowMessageFmt('My %d messages are accumulating', [3]);