/**
* Precondition:  n >= 1
* Action:  Recursive method to write out n of the symbol # one line 
*              and advance to the next line as long as n >= 1
* 
* @author:  Savitch
*/

public class PrintPound
{
    private static int count = 0;
    public void printIt (int n)
    {
	     count++;
        if ( n < 1)
           return;
        else
        {
              for (int i = 1; i <= n; i++)
                     System.out.print ('#');
              System.out.println ();
              printIt (n-1);
        }
		  System.out.println (count);
     }
}

