Update ProgrammedWorm.java

added initial value for counter