Did Shakespeare write 37 or 38 plays. Is there any consensus?

It depends on whether or not you count co-authored plays, I suppose. And do you count the lost plays? I don’t believe there is a consensus.