Takes a table and returns an array containing the numbers of any positive integer keys that have non-nil values, sorted in numerical order. For example, for the table , numKeys will return .