Gram counting works OK