fix count when tree has no root node, run gofmt