parameters: (self, s)
return_statement: return count
docstring: :type s: str
          :rtype: int
docstring_summary: :type s: str
          :rtype: int
docstring_tokens: : type s : str : rtype : int
function: def countDistinct(self, s):
          """
          :type s: str
          :rtype: int
          """
          count = 0
          trie = {}
          for i in xrange(len(s)):
              curr = trie
              for j in xrange(i, len(s)):
                  if s[j] not in curr:
                      count += 1
                      curr[s[j]] = {}
                  curr = curr[s[j]]
          return count
function_tokens: def countDistinct ( self , s ) : count = 0 trie = { } for i in xrange ( len ( s ) ) : curr = trie for j in xrange ( i , len ( s ) ) : if s [ j ] not in curr : count += 1 curr [ s [ j ] ] = { } curr = curr [ s [ j ] ] return count