Sketch of function to count number of wins for each model.  This isn't working at all for a reason which I cannot yet figure out, and I think I'm going to switch to an sqlite approach, but I'm saving this bit in case I want it later.
Rewriting to output an sqlite database, problem with output, i.e., not outputting all the sites.
Fixed a problem with an improperly indented explicit return statement.