old_contents: from django.db import models
  from denorm.fields import denormalized
  from denorm.dependencies import DependOnRelated
  
  def CountField(model,manager,fk_name=None):
  
      countfield = denormalized(models.IntegerField)(lambda i:getattr(i,manager).count())
      dependency = DependOnRelated(model,fk_name)
      countfield.denorm.func.depend = [dependency]
  
      return countfield
  
  
new_contents: from django.db import models
  from denorm.fields import denormalized
  from denorm.dependencies import DependOnRelated
  
  def CountField(model,manager,fk_name=None):
  
      countfield = denormalized(models.PositiveIntegerField)(lambda i:getattr(i,manager).count())
      dependency = DependOnRelated(model,fk_name)
      countfield.denorm.func.depend = [dependency]
  
      return countfield
  
  
subject: use unsigned for counts