38 plays are canonically attributed to Shakespeare (First Folio + Pericles + The Two Noble Kinsmen).
Debates persist on collaborations (Henry VIII, Timon of Athens, Pericles) and apocrypha (Edward III, Sir Thomas More). But 38 is the standard scholarly count.