While Shannon entropy is related to the growth rate of multinomial coefficients, we show that the quadratic entropy (Tsallis 2-entropy) is connected to their q-version; when q is a prime power, these coefficients count flags of finite vector spaces with prescribed length and dimensions. In particular, the q-binomial coefficients count vector subspaces of given dimension. We obtain this way a combinatorial explanation for the non-additivity of the quadratic entropy. We show that statistical systems whose configurations are described by flags provide a frequentist justification for the maximum entropy principle with Tsallis statistics. We introduce then a discrete-time stochastic process associated to the q-binomial distribution, that generates at time n a vector subspace of F n q (here F q is the finite field of order q). The concentration of measure on certain "typical subspaces" allows us to extend the asymptotic equipartition property to this setting. We discuss the applications to Shannon theory, particularly to source coding, when messages correspond to vector spaces.