Check input line count in HDF5 data layer