Solve the problem to count the number of good subsequences.
Given a binary string s, count distinct non-empty subsequences that begin with 1. Return the count modulo 10^9 + 7.
Implement def count_good_subsequences(s):, where s is a string containing only 0 and 1, and the return value is an integer.
def count_good_subsequences(s):