I'm also not an expert but what I can see there is missing [parameter] by declaration of variable currentCount. It should be [parameter] private int currentCount = 0;
[parameter] private int currentCount = 0;