Subsequence recursion problem

it is printing correct subsequence but not showing correct count of subsequence
kindly rectify the code as early as possible

in your code count is only valid in the function
after that it is 1
you have to pass count by reference
if you want to count the number of subsequences
do this