How to list global variables in the current environment?

any way to see how many global variables in the current environment? In R/matlab, we can see how many global variables we have defined. but in python, they are like ghosts…

see globals(), locals() or dir() for global vars, local vars and in scope vars