Factor. tanθ(sinθ+1)=2sinθcosθ means sinθ[cosθ1+sinθ−2cosθ]=0.
Case sinθ=0: θ=−π,0,π.
Other case: 1+sinθ=2(1−sin2θ), so 2sin2θ+sinθ−1=0: sinθ=21 (sinθ=−1 is excluded). So θ=6π,65π.
Count and sum. n(S)=5 and T=1+1+1+cos3π+cos35π=4. So T+n(S)=9.
(B)