First of all, the countofInts is not necessary. An array has a length property but in your case is not even necessary.
Second, the other two parameters can be simple int values, named e.g. start and...