Interview Question : Count all common subsequences in two strings

Two strings are given. Count all common subsequences in both strings.