Here are the exact steps, tried on pycharm2016 (pro-test)
1. File-->settings-->editor-->general-->appearance
2. Just put a tick in front of show line numbers.
This above method of setting the number of rows to display in pycharm is all that I have shared with you, I hope it will give you a reference, and I hope you will support me more.