• + 0 comments

    Here is my Simple and straightforward Java solution :

    return (int) (s.chars().filter(Character::isUpperCase).count()+1);