solution for #19: counting sundays