fix #23223: Count in for xml files is now correct

Count In for xml files now works as desired.