Combinatorial aspects of continued fractions