The Wall Street Journal has the summary.
From the article, "Freddie Mac reached its shortage figure by assessing the amount of single-family home building needed to match demand from household formation, second-home purchases and replacements of damaged or aging U.S. homes, and comparing that with the pace of construction."
Freddie Mac has the raw data.
http://www.freddiemac.com/research/insight/20210507_housing_supply.page
From the research, "Our estimates suggest that the shortage has increased 52% from 2.5 million in 2018 to 3.8 million in 2020."