Fix "uninitialized count" oversight in hackport

My alg assumed than an unused variable was 0
It seems that under some unexpected conditions, the value count is uninitialized, leading to a crash