Fixed issue#1, off by 1 loop variable in getNumberOfBytes(...)