Well, unless I'm missing something obvious, you're not even calling the draw function. You're doing a "flip" but that's about it...
And BTW, "CountList" would be a nice replacement for your "count" functions...
And BTW, "CountList" would be a nice replacement for your "count" functions...