I created a static method which returns a static int in class NewTriangle. But when I try to call it from the main it won't print. It asks to create a method with the same name inside the main. 

```
public class NewTriangle{
    public static in numberOfTriangles;

    public static int getnumberOfTriangles(){
        return numberOfTriangles;
    }
}

```

The code works up until this point. But When I call getnumberOfTriangles() from the main I get an error.

```
public static void main(String args[]){
    System.out.println(getnumberOfTriangles());
}

```