Tammy,
The bodys breathing is regulated by a variety of internal triggers and never fails a it is invulunatarz.
What may have happened is that you awaoke from sleep suddenly whilst you only needed a very few breaths a minute during sleep and with the startle increased your requirement and it took a couple of seconds for you to catch up with yourself.
You are fine and doing great
Love
Meg xx