The number of Hero Souls you receive when you ascend is proportional to the total number or levels your heroes have gained, the more money you have spent on your heroes, the more Hero Souls you will receive.