There are two main types of sonnets: Petrarchan (or Italian) sonnets and Shakespearean (or English) sonnets. Petrarchan sonnets consist of an octave followed by a sestet, while Shakespearean sonnets consist of three quatrains and a final rhyming couplet.
38 plays, 154 sonnets
Tottle's Miscellany, published in 1557, contained 271 sonnets.
Plays and Sonnets.
William Wordsworth wrote 523 sonnets in his lifetime.
Many authors have and do write sonnets, they do not come from a single source.
There are 44 Glasgow Sonnets by Edwin Morgan.
The volume Shakespeare's Sonnets [1609] contains 154 sonnets, so the usual answer to this question is 154. There are a few 'sonnets' embedded in the plays (particularly in Romeo and Juliet); but people don't normally include these among Shakespeare's Sonnets (for a number of reasons).
Shakespearean sonnets - sonnets by Shakespeare
5056
Quelques Portraits-Sonnets de Femmes has 66 pages.
Shakespearean sonnets - sonnets by Shakespeare