Why do the Japanese count pregnancy as 10 months?

I’ve found two totally different explanations for this:

– The Japanese are still basing what they say on the traditional lunar calendar of 28 days per month (perhaps simplifying from the traditional 10 months and 10 days saying)

and/ or

– The Japanese count from the last period rather from the first missed period