I need that when I press the button to show me how many times was the button pressed. I use this method, but on console still show me the number 1.
Here is code:
 button_help.setOnMousePressed(new EventHandler<MouseEvent>() {
    @Override
    public void handle(MouseEvent event) {
    int count = 0;
    count ++;
        System.out.println(count);
    }
 });
 
     
     
     
    