Counting Faces and Chains in Polytopes and Posets