Write a program to count sub-sequences in a string.
For this task, count all subsequences containing exactly two characters. A subsequence is formed by choosing two distinct character positions while preserving their order. Characters with the same value at different positions are counted separately.
Input: A string s.
Output: Return the number of length-two subsequences as an integer.
For a string of length n, every pair of positions forms one valid subsequence.
s contains any standard Python string charactersdef count_subsequences(s):