Moved cnt upward
Added streams