count() and serialize() should be uniform.