It's always a little frustrating when you're trying to write the most beautiful code you can, but because of a limitation in the programming language you have to roll up your sleeves and brute force it. As programming technologies mature, I find this to be rarer and rarer.

Sadly, Dan M. inherited a project in which some cutting-edge features weren't available. For example, the cutting-edgiest feature conceivable: arrays!

Below is a search for the word "COUNT" in a single code file.

*---: / COUNT
0291:    COUNT1 = 0
0292:    COUNT2 = 0
0293:    COUNT3 = 0
0294:    COUNT4 = 0
0295:    COUNT5 = 0
0296:    COUNT6 = 0
0297:    COUNT7 = 0
0298:    COUNT8 = 0
0299:    COUNT9 = 0
0300:    COUNT10 = 0
0301:    COUNT11 = 0
0302:    COUNT12 = 0
0303:    COUNT13 = 0
0304:    COUNT14 = 0
0305:    COUNT15 = 0
0306:    COUNT17 = 0
0307:    COUNT18 = 0
0308:    COUNT19 = 0
0309:    COUNT20 = 0
0310:    COUNT21 = 0
0311:    COUNT22 = 0
0312:    COUNT23 = 0
0313:    COUNT24 = 0
0314:    COUNT25 = 0
0315:    COUNT26 = 0
0316:    COUNT27 = 0
0317:    COUNT28 = 0
0318:    COUNT29 = 0
0319:    COUNT30 = 0
0320:    COUNT31 = 0
0321:    COUNT32 = 0
0322:    COUNT33 = 0
0323:    COUNT34 = 0
0324:    COUNT35 = 0
0325:    COUNT36 = 0
0326:    COUNT37 = 0
0327:    COUNT38 = 0
0328:    COUNT39 = 0
0329:    COUNT40 = 0
0330:    COUNT41 = 0
0331:    COUNT43 = 0
0332:    COUNT44 = 0
0333:    COUNT45 = 0
0334:    COUNT46 = 0
0335:    COUNT48 = 0
0336:    COUNT49 = 0
0337:    COUNT99 = 0
0338:    COUNT100 = 0
0339:    COUNT101 = 0
0340:    COUNT102 = 0
0341:    COUNT103 = 0
1352:                COUNT33 += NO.ITEMS
1377:                                  COUNT9 += 1
1380:                                  COUNT29 += 1
1412:                COUNT99 += NO.ITEMS
1452:          COUNT33 += NO.ITEMS
1554:                COUNT25 += 1
1562:          COUNT101 += 1
1567:          COUNT100 += 1
1637:                               COUNT40 += 1
1666:                      COUNT36 += 1
1743:                COUNT30 += 1
2092:          COUNT17 += NO.ITEMS
2103:          COUNT18 += NO.ITEMS
2114:          COUNT19 += NO.ITEMS
2125:          COUNT20 += NO.ITEMS
2136:          COUNT21 += NO.ITEMS
2147:          COUNT22 += NO.ITEMS
2159:             COUNT23 += NO.ITEMS
2172:          COUNT24 += NO.ITEMS
2192:             COUNT25 += NO.ITEMS
2204:          COUNT27 += NO.ITEMS
2220:                COUNT27 += NO.ITEMS
2237:          COUNT28 += NO.ITEMS
2252:                COUNT28 += NO.ITEMS
2269:          COUNT26 += NO.ITEMS
2281:          COUNT37 += NO.ITEMS
2304:          COUNT36 += NO.ITEMS
2317:       COUNT43 += NO.ITEMS
2328:          COUNT44 += NO.ITEMS
2486:       COUNT102 += 1
2511:          COUNT35 += 1
2521:          COUNT1 += 1
2537:             COUNT34 += 1
2556:             COUNT2 += NO.ITEMS
2573:             COUNT3 += NO.ITEMS
2602:             COUNT4 += NO.ITEMS
2615:                COUNT5 += 1
2622:                COUNT6 += NO.ITEMS
2634:       COUNT7 += 1
2662:       COUNT8 += 1
2667:       COUNT29 += 1
2673:       COUNT30 += 1
2684:             COUNT31 += 1
2694:             COUNT9 += 1
2717:             COUNT49 += 1
2739:                COUNT103 += 1
2764:                   COUNT46 += 1
2777:       COUNT41 += 1
2791:          COUNT45 += 1
2801:          COUNT9 += 1
2826:                      COUNT39 += 1
2842:          COUNT10 += 1
2888:       COUNT101 += 1
2897:          COUNT32 += 1
2904:          COUNT32 += 1
2915:          COUNT12 += 1
2955:       COUNT11 += 1
2985:          COUNT13 += 1
2991:       COUNT14 += 1
2997:          COUNT15 += 1
3003:       COUNT15 += 1
3008:       COUNT15 += 1
3013:       COUNT15 += 1
3018:       COUNT14 += 1
3159:          COUNT14 += NO.ITEMS
3168:                COUNT15 += NO.ITEMS
3178:                COUNT15 += NO.ITEMS
3188:                COUNT15 += NO.ITEMS
3196:          COUNT15 += NO.ITEMS
3202:          COUNT15 += NO.ITEMS
3208:          COUNT15 += NO.ITEMS
3214:          COUNT14 += NO.ITEMS
4991:    COUNT.TOTAL = COUNT1 + COUNT2 + COUNT3 + COUNT4 + COUNT5 + COUNT6 + 
COU
NT7 + COUNT8 + COUNT9 + COUNT10+ COUNT11 + COUNT12 + COUNT13 + COUNT14 + 
COUNT15
 + COUNT17 + COUNT18 + COUNT19 + COUNT20 + COUNT21 + COUNT22 + COUNT23 + 
COUNT24
 + COUNT25 + COUNT26 + COUNT27 + COUNT28 + COUNT29 + COUNT30 + COUNT31 + 
COUNT32
 + COUNT33 + COUNT34 + COUNT35 + COUNT36 + COUNT37 + COUNT38 + COUNT39 + 
COUNT40
 + COUNT41 + COUNT43 + COUNT44 + COUNT45 + COUNT46 + COUNT48 + COUNT49 + 
COUNT99
 + COUNT100 + COUNT101 + COUNT102 + COUNT103

Brute force, baby!