I think the right number if the lines you need, but force to have more files than lines, i prefer to cut and separate functionalities and make every file make sense for himself. I think a good number maybe between 200 or 300 lines, and every method don't need to have more than 30-40 lines? If you think about how to organize your code, this can be made easy :)