On the counting problem in inverse Littlewood-Offord theory