The NT Canon has slightly less than 40. But that is including the Catholic idea that includes others.. that sit between the OT and NEW, and im talking about long ago, not recent.
So, depending on which "scholarship" you are using............... i included both the older history, the early, and the recent that is what happened about the time of the protestant reformation.
If you want the Protestant version, then 27, yet, this is even debated, as 22 was considered all at one point, as a few that exist in the current canon were disputed.
However, if you consider all the epistles that never made it into the NT canon, then that is exactly the same as how to view all the Greek Texts that exist, but are not considered viable or authentic.