how to get non null columns count in python