By the sum-to-product formula, cosx+cos5x=2cos3xcos2x, so the equation becomes cos3x(2cos2x+1)=0.
cos3x=0: with 3x∈[0,3π], 3x∈{2π,23π,25π}, so x∈{6π,2π,65π}.
cos2x=−21: with 2x∈[0,2π], 2x∈{32π,34π}, so x∈{3π,32π}.
These five values are distinct, so there are 5 solutions.