def count_words(request): return WordCountResponse(len(request.words.split()) ) # The callback function takes a single argument
def count_words(request): return WordCountResponse(len(request.words.split()))
def count_words(request): #2 print "There are %s words" % WordCountResponse(len(request.words.split())) return WordCountResponse(len(request.words.split()) ) #wordcountResponse takes uint32 as its argument