counting solved for every set