consider a random variable given by the length of the keyword