Added a getNumberOfLines() method to Register