On checking to give the facts to WW, I find I erred. Albert Schweitzer, in his monumental biography, J.S. Bach, says the following:
Of the thirteen children that Anna Magdalena bore to him, seven died; at his own death, of his twenty children only nine were living -- five sons and four daughters*. The oldest son of Anna Magdalena, Gottfried Heinrich, was of weak intellect. ...
*Two sons (Wilhelm Friedemann and Carl Philipp Emmanuel) and one daughter (Catharina Dorothea) were of the first marriage; the third son of Maria Barbara, named J.G. Bernhard, died at Jena in 1738 [having been organist at Mühlhausen at age 20 and later at Sangershausen]. Of Anna Magdalena's children there survived him: Gottfried Heinrich (1724-1763), Elisabeth Juliane Friederike (b. 1726, d. ?), Johann Christoph Friedrich (1732-1795), Johann Christian (1735-1782), Johanna Caroline (1737-1781), and Regine Susanna (1742-1809).
The following children of Anna Magdalena all died at Leipzig: Christiana Sophie Henriette (b.1723, d. 29 June 1726); Christian Gottlieb (b. 1725 d. 21 Sept 1728); Ernestus Andreas (d. 1 Nov. 1727 soon after birth); Regine Johanna (b. 1728, d. 25 Apr. 1733); Christiana Benedicta (d. 4 Jan. 1730 soon after birth); Christiane Dorothea (b. 1731, d. 31 Aug. 1732); Johann August Abraham (d. 6 Nov. 1733 shortly after birth).

Besides the children of Barbara who survived, there were twins who died shortly after birth in 1703 [sic --misprint for 1708 or 1713 ??], and a son named Leopold August born in Weimar 15 Nov 1718 d. 28 Sept. 1719.
Friedemann died 1 July 1784 at the age of 74. Emmanuel died in Hamburg in 1788.

J.S. Bach was born in Eisenach on 21 March 1685 and died at Leipzig 28 July 1750. He married Maria Barbara Bach (a cousin) on 17 Oct 1707 while serving as organist at St. Blasius in Mühlhausen. While serving as Kapellmeister to Prince Leopold of Anhalt-Cöthen, he accompanied the prince on a trip to Carlsbad in July 1720. On returning home, he found that Barbara had died suddenly and had been buried on 7 July, leaving him with the four children noted above. On 3 Dec. 1721 he married Anna Magdalena Wülken.