Can you solve this in brief code?
<p>there are 10 variables. say <code>$var1, $var2, $var3, $var4,....$var10</code></p>

<p>and a <code>$count</code> variable. what I am looking for is if all variables are set then <code>$count = 10+1</code> or if 9 variables only set then <code>$count=9+1</code> or if 8 variables only set then <code>$count=8+1</code>  and so on last up to 1 variable(for one variable is set then <code>$count = 1+1</code>).</p>

<p>I know do this with <code>If</code>, <code>Else if</code> and <code>else</code> but I need to write too much line of code.</p>

<p>Does any one know how to do this in brief code??</p>
