Below is the graph of y = acos(bx+c)+d, where a, b, and c are positive, and c is as small as possible. Find a + b + c+d.
The answer is 3.