Correct all of the grammatical issues in the following text:
It is determined by how many crimes are prevented beforehand.
According to the author, it is determined by how many crimes are prevented beforehand.