Seven boxes, A, B, C, D, P, Q and R, are kept one over the other, but not necessarily in the same order. P is kept immediately above Q. A is kept immediately above R. Only D is kept above B. Only two boxes are kept above P. A is not kept at the third position from the bottom. How many boxes are kept between C and D?