A method to retrieve the number of spaces in the array has been implemented