There are generally agreed to be 54 or 55 complete surviving Haydn sonatas: Hob.XVI:1-10, 12-14, 16, 18-52, G1, Es2, Es3, F3 and Hob.XVII:D1 (one sonata, Hob.XVI:47, exists in two versions, the first in E and the second in F). 1, 5, 16, the F major version of 47, Es2 and Es3 are of doubtful authenticity, although no other attribution has been proposed; Hob.XVI:F3 was discovered recently and is also of doubtful authenticity. So there are basically 48
indisputably authentic sonatas.
There is a sonata fragment, Hob.XIV:5, which has been reconstructed but I'm not sure how authentic that is. If you include it along with both versions of Hob.XVI:47 that's 56.
Hob.XVI:11 combines the last movement of G1 with a minuet from a baryton trio, Hob.XVI:15 is a divertimento for flute, oboe and strings by Haydn arranged for keyboard, Hob.XVI:Es1 is a single-movement arrangement of an aria from a pasticcio by Haydn. They can plausibly be included as containing at least some of his music, for a total of 59. The Wiener Urtext edition considers only Hob.XVI:11 to be authentic (or partially so), thus its total of 57.
There are the seven lost sonatas (Hob.XVI:2a-h) only known from incipits. A modern composer named Winfried Michel composed sonatas in Haydn's style based on these and published them as "rediscovered Haydn sonatas" in the 1990s. In theory one could include these to obtain 66 sonatas, even though only the first few bars of each one is by him.
Finally there's Hob.XVI:17 (actually by Johann Gottfried Schwanenberger), Hob.XVI:C1 (possibly by Joseph Haroldt), Hob.XVI:C2 (real author unknown), Hob.XVI:D1 (possibly by Ferdinand Kauer), Hob.XVI:B1 (real author unknown), the three "Göttweig" sonatas (actually by Franz Anton Hoffmeister), and the six "Frankfurt" sonatas (now believed to be by a North German composer). So if you want to include every piano sonata at one time attributed to Haydn, that's 80 in total: 48 authentic, 7 disputed, 3 arrangements by others, 1 reconstructed, 7 lost, 14 misattributed. (There were also some sonatas by Pleyel attributed to Haydn, but there were likewise Haydn sonatas attributed to Pleyel; both composers were immensely popular at the time and maintained a friendly teacher-student rivalry.)
See, e.g.:
https://publish.iupress.indiana.edu/rea ... 3ed436#fm2