Input dialog then keystroke it

Hi there.
I would like help with a script

It brings up a dialog saying how many times you want to send and another dialog with your message.
Could you help do this script please

Thanks LUke

display dialog "How many times do you want to send this?" default answer 1
display dialog "Please enter the message you would like to send." default answer "" & return & return & return & return & ""