calculater percentage of each occurece.