Sir i am not able to count the number of occurences in this code

public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String str=sc.nextLine();
String empty=" ";
printSS(str,empty);
}

private static void printSS(String str, String result) {
	if(str.length()==0) {
		System.out.print(result);
		return;
	}
	char cc=str.charAt(0);
	String ros=str.substring(1);
	printSS(ros, result);
	printSS(ros, result+cc);
	
}

@karamjitverma89,

The total number of these subsequences is equal to pow(2, len(str) ) , where str is the input string.