Given two strings, find the number of distinct subsequences of one string which equals the other.
Count subsequences by their selected indices, so different index selections are counted separately even when characters repeat. Implement count_distinct_subsequences(source, target), returning an integer count for the number of ways target can be formed from source while preserving order.
def count_distinct_subsequences(source, target):