In the paper http://arminstraub.com/downloads/slides/2012qbinomials-illinois.pdf page 9 "D3" it is written a method of calculation of q-Binomial coefficients. For example for the $\binom{4}{2}_q$ the method suggests $$\{1, 2\} → 0, \{1, 3\} → 1, \{1, 4\} → 2, \{2, 3\} → 2, \{2, 4\} → 3, \{3, 4\} → 4$$
Where the $\{a, b\} → a-1 + b-2$. So the $\binom{4}{2}_q = 1 + q + 2q^2 + q^3 + q^4$ as the $2$ appears $2$ times and the rest of values $1$ times. But I can not understand how to calculate for example $\binom{7}{3}_q$. Could you please help with understanding this.
So you want $$\binom{7}{3}_q=\sum _{S\in \binom{[7]}{3}}q^{w(S)},$$ You have to list all subsets of $\{1,2,3,4,5,6,7\}$ of size $3$ which are $35$ of them. For each one, you have to sort them and do the following: Imagine $S=\{s_1,s_2,s_3\}$ then $w(S)=s_1-1+s_2-2+s_3-3=s_1+s_2+s_3-\binom{4}{2}.$
For example, for $S=\{3,5,7\}, w(S)=3+5+7-\binom{4}{2}=15-6=9.$ When you do it for all possible $S$ then the coefficient of $q^i$ is how many times you got an $i$ in the process.