Although not a hard limit, it's recommended to keep the number of cells in the notebook less than 100 for better UI experience as well as code readability.
Having a really large block of code in a cell defeats the purpose of notebook execution and also makes it difficult to break down and debug. Hence it's best to keep the lines of code short.