HackerRank - Cracking the Code Interview - Camel Case

Here's my Java solution for HackerRank and Cracking the Code Interview's Camel Case problem.

import java.io.*;  
import java.util.*;  
import java.text.*;  
import java.math.*;  
import java.util.regex.*;

public class Solution {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.next();

        int count = 1;

        for (char c : s.toCharArray()) {
            if (Character.isUpperCase(c)) count++;
        }

        System.out.println(count);
    }
}