Read field_count as length encoded integer

fixes #175