fix member count for thrift structures on read [thanks Elena Ceseracciu]