Feature #761 Thread Count
Added recount thread count on upgrade