fixed formula in count