trying to fix issue with count not always showing up in production