(Pro 30:18 KJV) There be three things which are too wonderful for me, yea, four which I know not:
No, Solomon is not confused. He is not having a hard time making up his mind. Is it three or four? Actually it is a literary devise. You also see it in the book of Amos, for example,
(Amo 1:3 KJV) Thus saith the LORD; For three transgressions of Damascus, and for four, I will not turn away the punishment thereof; because they have threshed Gilead with threshing instruments of iron:Amos then goes on to use it eight times. Adam Clarke explains that it is a way of emphasizing things, a literary devise. This is an example of how study helps us understand things we question.
So? Keep studying whether it is three or four times.