Fix fields count comparison

Just needs to be merged. Fixes #65.