All of the US flags in the 1950s McCarthy era have 50 stars. The flag was not changed until 1960.
In some of the McCarthy parts of the show, various flags can be seen in the background. Most are of the 50-star variety but at least one 48-star flag is visible. The 50-star flag was adopted a few years after the McCarthy period.