Returns the number of numbers required to be inserted into an array such that all the numbers are consecutive.