In general, the number of truth table rows is $\textbf{2}^\textbf{n},$ where $n$ is the number of variables.
But if a variable appears, for example, $q$ appears twice, is it considered a calculation of one or two variables?
Also, if there are variables $q$ and $~q,$ then is it one or two variables?
Thank you in advance!
Repetitions of, say '$q$,' count as the same variable, so it would be considered one variable. The definition is the same as for an equation in algebra, like $x^2+x =0.$ The unknown 'x' counts as just one unknown.