How can I test how many lines are in the user's console window?

I want to put a brief pause in my program that is approximately 370 lines long. It is a loan amortization program for school. I have done some searching on this, but I can only find how to make JFrames and other swing components full screen. This program must remain a console application.

Any help is much appreciated.