Tools/PyUtils/python/MetaReader.py: fix extracting of number of entries, re-factor extracting of number of entries from DataHeader into a function
@gemmeren , @amete , @mnowak , @maszyman