Simultaneous but independent speed control of 2 servos

 count=1;
  while (count=1)
  {
  }

It will never leave this loop for two reasons:

  • Count starts off at 1, and you don't change it (however see below).
  • In the loop, you keep resetting count to 1.