Find the number of solutions to the equation: 

$$6\{x\}^3 + \{x\}^2 + \{x\} + 2x = 2018.$$ 

With $\{x\}$, we denote the fractional part of the number $x$.

Let's think step by step and output the final answer within \boxed{}.
user