To be honest, there is a difference between modernizing an interwar or WW1 battleship (which was using existing ressource) and flat out producing a new one. For BBs produced after, say, 1933, the number are pretty telling (I'm putting ships that were actually laid down, IE work started on them, whenever they were cancelled, bombed, scrapped, converted to aircraft carriers or incomplete by 1945...)
SU : Four (none completed)
Soviet Union, Soviet Russia, Soviet Ukraine, Soviet Bielorussia
(To be honest, it's pretty hard to evaluate those 60 000 tons ships, that would have been on par with the Yamato on paper but you can be a bit sceptical about the capacities of the SU to actuallly produce those ships considering the difficulties that plagued the construction. I mean, I don't want to mock Russian naval engineers, but when you start shooting workers as ''saboteurs'' over rivets...)
Two battlecruisers of 40 000 tons (none completed)
Sevastopol, Kronsdat.
(same observations).
Both for BBs and BCs, the best ships ,were around 20% done when war started, so....
Germany : Four (Schnarnost, Gneisenau, Bismarck, Tirpitz) (four completed)
Note : Scharnost and Gneisenau are count as BC in many books, but let's count them as BB)
Japan : Four (two completed as BBs, one launched as carrier)
(Yamato, Mushashi, Shinano, Unammed
(the fourth ship was scrapped early on construction)
Italy : Four (three completed)
Littorio, Vittorio Veneto, Roma, Impero (Impero was never completed)
France : Five (three completed)
Dunkerque, Strasbourg
(a bit small for BBs, a bit large for BC...)
Richelieu, Jean Bart, Clemenceau (Jean Bart was completed well into the fifties, Clemenceau was scrapped as a skeleton)
UK : Eight (five completed during the war)
King George V, Prince of Wales , Duke of York, Anson , Howe
Lion, Temeraire (scrapped early on)
Vanguard (completed after the war)
United States : Twelve (ten completed)
North Carolina, Washington
South Dakota, Indiana, Massachusetts, Alabama
Iowa, New Jersey, Missouri, Wisconsin, Illinois, and Kentucky (last two never completed)
plus, as we count Scharnost class type as well as Dunkerque types, the Alaska-class BCs (which were qualified, in a slightly American-style overkill, as heavy cruisers despite being 34 000 tons ships...)
Alaska, Guam, Hawaii (last one never completed)
So, to summarize, for BBs and BCs,
SU = 6 laid down, 0 operationnal
Germany = 4 laid down, 4 operationnal
Italy = 4 laid down, 3 operationnal
Japan = 4 laid down, 2 operationnal
France = 5 laid down, 3 operationnal (Richelieu was very barely operational until a major US refit)
UK = 8 laid down, 5 operationnal
United States = 15 laid down, 12 operationnal.
As I said, it's very generous to count some of those ships (the SU one, the Clemenceau as potential ships) , but we arrive at 44 ships laid down and 29 , 12 of them being Americans.
As the Americans managed to produce also 150 carriers of all types (including 18 Essex carriers) , I don't think it crippled them much. On the other hand, the four Littorios, ,despite being very good ships (for daylight combat, that is...) were probably a luxury that Italy could ill afford. On yet another hand, the ships looking the most like ''good one way submarines'', the Soviet battheships, were not that a waste of ressources, since they were made with rather poor steel in the late thirties : most of that metal would have been used to produce tanks dramatically outdated for June 1941. Per Soviet Union rules, the only serious losses was with the numerous engineers and skilled workers executed for ''wrecking'' during the constructions....