Let-in 1x4s and metal T-braces hold a wall square until the sheathing is on. The new wall brace calculator in wall-framing-takeoff takes one wall length per line, the wall height, how many feet of wall per brace, the shortest wall to brace and the angle, and returns braces per wall, the length of each and the total feet.
With the defaults (walls of 40, 28, 12 and 3 ft, 8 ft high, one brace per 25 ft, 45 degrees) it counts 5 braces on 3 walls, each 11.31 ft on the diagonal, 56.6 ft in all; the 3 ft wall is too short and gets none. It also warns when a wall is shorter than the horizontal run the braces need (8 ft at 45 degrees).
This is the arithmetic the takeoff tool already did for a whole house, now on its own page. It counts a rule you type: which walls are braced wall lines is a code and engineering question the page does not answer. A test checks the page's engine against the takeoff engine's wallBracing count and feet, and the page was run in headless Chromium.