How do you find the domain and range of f(x)=cosx+1?

D: $\left(- \infty , \infty\right)$
R: $\left[0 , 2\right]$