function count(str) {
    let obj = {}
    str.split('').forEach(item=>{
        if(obj[item]){
            obj[item]++
        }else{
            obj[item] = 1
        }
    })
    return obj
}