Fixed to use `IPython.keyboard_manager._delete_count`.