Coun

 import java.util.Scanner;

public class coun
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);

        int num;
        
        System.out.println("What up. So we're gonna be counting from 0 to your number. So what's you number gonna be?");
        num = keyboard.nextInt();
        
        for ( int n = 0 ; n <= num;  n = n+1)
        {
            System.out.println( n );
        }
    }
}
    

Picture of the output