Arduino to send sms one time only when a button is pressed
You are resetting count every time you enter the function.

static int count; // initialized to zero, once.


Adding the static statement should initialise the variable once and preserve its value between calls.