I have seen the solutions here:
Count of non-null columns in each row
My own initial instinct was using case statements. But I have far more than 4 columns and I want to repeat this process on four different tables. Is there a way to repeat the process with some kind of loop through all columns rather than naming each of them explicitly?