How can a count be a non-integer value? Counts should be required to be integers. If it's currently possible for count to be a non-integer-value, leave the code as-is but create an issue to make that impossible and modify the serializer to reflect that.