function count(str) {
    let obj = {};
    for (let i of str) {
        if (i === ' ') continue;
        if (!obj[i]) obj[i] = 1;
        else obj[i]++;
    }
    return obj
}