Long deep breath, in the nose and out the mouth...........don't think of anything but breathing while doing it, just concentrate on breathing........
inhale to the count of four,
hold it to the count of four,
exhale to the count of four,
hold it to the count of four.
when you are having these attacks you end up not breathing right and controlled breathing can stop panic attacks