How to Get Index of Bezier Point Selected?

I want to get the index number of the currently selected point (Bezier Point), how to code it? (Blender 2.8).
Hope to be of help. Thank you