readded the counts check