Java - Static Keyword
Identify the error in the following code snippet:
class Counter {
static int count;
void increment() {
count++;
}
public static void main(String[] args) {
Counter c = new Counter();
c.increment();
System.out.println(count);
}
}