loglin-dim function

Return the dimension of a log-linear model