Text this: The computation of the index of a Morse function at a critical point