Rebuild entries count