I'm quite confident that this would be marked as a correct answer, but yes, technically it's four words. In the exam, you should write State of California to be safe.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: