Have a problem with the last one, I read something about the "counter" but I dont know how to use that in this code?
package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
if ( a > 0 && b > 0 && c > 0 ){
System.out.println(3);
}
else if ( a > 0 && b < 0 && c > 0){
System.out.println(2);
}
else if ( a >0 && b>0 && c<0){
System.out.println(2);
}
else if ( a<0 && b > 0 && c > 0){
System.out.println(2);
}
else if ( a<0 && b<0 && c>0){
System.out.println(1);
}
else if ( a<0 && b>0 && c <0){
System.out.println(1);
}
else if ( a>0 && b<0 && c<0){
System.out.println(1);
}
else if (a<0 && b<0 && c<0){
System.out.println(0);
}
else{}
}
}