Updated to add counter type!

Now change the count Up/Down from Java code !