Fix ported from research branch patch

Change-Id: Ie9fd74abd1cbec61f763f8054f70f58f0a6c9529
diff --git a/apps/aomenc.c b/apps/aomenc.c
index 63e1afa..005b4cb 100644
--- a/apps/aomenc.c
+++ b/apps/aomenc.c
@@ -31,6 +31,7 @@
 #include "aom_dsp/aom_dsp_common.h"
 #include "aom_ports/aom_timer.h"
 #include "aom_ports/mem_ops.h"
+#include "av1/common/quant_common.h"
 #include "common/args.h"
 #include "common/ivfenc.h"
 #include "common/rawenc.h"
@@ -1155,7 +1156,7 @@
   uint64_t psnr_samples_total;
   double psnr_totals[4];
   int psnr_count;
-  int counts[256];
+  int counts[QINDEX_RANGE];
   aom_codec_ctx_t encoder;
   unsigned int frames_out;
   uint64_t cx_time;