Fitness function counts occurances during given times instead of just true or false