function count(str) {
    const obj = {}
    // 简约即是优雅
    Array.from(str.replace(' ', '')).forEach(key => Reflect.has(obj, key) ? obj[key]++ : obj[key] = 1)
    return obj
}