Video viewing statistics for Grammar index by induced suffix sorting