in Titanium SDK >=3.3.0, fieldCount is a read-only property

I think this fix is superior to #43 because it should work on all versions.