avoid warning: ‘count’ may be used uninitialized