User-16411453 posted
It's PreInit, that controls don't exist yet!. There's nothing to count, the controls don't exist.
See this post and use the example anwser as a template for your control. Then all of your values will stay on postback
http://forums.asp.net/t/1303475.aspx