the first loop was making an array, that you didnt need to make.  cuz u were just using it to count.  when you should just count in the first loop