Renamed pdb_i to pdb_resnum, since I do not use the pdb residue index
anymore, but the pdb residue number as given in the pdb file.

Also adjusted this in the atom count function, which still used the pdb
residue index.