fixed count calc issue