/*
Online Java - IDE, Code Editor, Compiler
Online Java is a quick and easy tool that helps you to build, compile, test your programs
online.
*/
public class Main
{
    public static void main(String[] args) 
    {
        System.out.println("Welcome to Online IDE!! Happy Coding :)");
        
        int [] temp = new int[]{1,2,3,4,9,0};
        int length=temp.length;
        
        Recursion rc = new Recursion (temp, length);
    }
}

class Recursion
{
    int len;
    int [] nums;
    
    public int checkNumbers(int len)
    {
        if (len<=0)
        {
            return 0;
        }
        else
        {
            return 1 + checkNumbers(len-1);
        }
    }
    
    public Recursion (int [] nums, int len)
    {
        this.len=len;
        this.nums=nums;
        System.out.println(checkNumbers(len));
    }
}