Counting good truth assignments of random k-SAT formulae