Fix for bug in rule C which added credit values as strings

The value of `creditCount` (the loop condition) was being modified as follows: `0 => 20 => 2010 => leave loop`. Explicitly converting to an integer fixes this.