Two complexity measures for context-free languages