getUndoNumber(points) - new method of ConsoleView

Add new method getUndoNumber(pts) and call it from getIndex()
to save number of steps user want to cancel in points.