You are allowed one exemption for each person you can claim as a dependent.
According to the IRS Frequently Asked Questions website, you are not allowed to claim a stillborn child as a dependent:
My child was stillborn. May I claim my child as a dependent on my tax return?
In order to claim a newborn child as a dependent, state or local law must treat the child as having been born alive, and there must be proof of a live birth shown by an official document like a birth certificate. Due to these requirements, you may not claim a stillborn child as a dependent.
Additional information, per Publication 501 Dependents, Standard Deduction, and Filing Information, starting on page 12:
Death or birth of child. A child who was born or died during the year is treated as having lived with you more than half the year if your home was the child's home more than half the time he or she was alive during the year. The same is true if the child lived with you more than half the year except for any required hospital stay following birth.
Child born alive. You may be able to claim as a dependent a child born alive during the year, even if the child lived only for a moment. State or local law must treat the child as having been born alive. There must be proof of a live birth shown by an official document, such as a birth certificate. The child must be your qualifying child or qualifying relative, and all the other tests to claim the child as a dependent must be met.
Stillborn child. You can't claim a stillborn child as a dependent.
Note that any link in the information above is updated each year automatically and will take you to the most recent version of the document at the time it is accessed.