Let's say I have a model selection problem and I am trying to use AIC or BIC to evaluate the models. This is straightforward for models that have some number $k$ of real-valued parameters.
However, what if one of our models (for example, the Mallows model) has a permutation, plus some real-valued parameters instead of just real-valued parameters? I can still maximize the likelihood over the model parameters, for example obtaining a permutation $\pi$ and a parameter $p$. However, how many parameters does $\pi$ count toward for computing AIC/BIC?