added frequency count script