Diagram shows a gear B is placed above the gear C. A shaft passes through gear C. A torque T in counter clockwise direction is applied on the shaft at D. The x-axis passes through the shaft.

Let's review the rotations in the system, looking from another viewpoint: