def _BinGetCount(self, ofs):
    pos = ofs
    l = struct.unpack('>B', self._plist_bin[pos:pos+1])[0] & 0xf
    l = 2 ** l
    c = 0
    pos += 1
    for unused_i in xrange(l):
      c = (c << 8) + ord(self._plist_bin[pos:pos+1])
      pos += 1
    return (pos-ofs, c)
Retrieve a count value at offset.
dataset/ETHPy150Open google/simian/src/simian/mac/munki/plist.py/ApplePlist._BinGetCount