Is there a formula I can use to find how many solutions an equation of the form ax +b = m*cos(kx) will have, a, b, m and k being constants?