fixed function get_num_hetero_atoms() name