Count instances of each unique item in an array

This is a script I wrote for Google Apps Scripts:

function oreGon(){
var arr = [ 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 4, 9, 1, 2, 0, 7, 8, 1, 2 ];
var uniques = [];
var instCount = [];
var prev = 666;
var arrCount = arr.length;
for(var a = 0; a < arrCount; a++){
if (arr[a] !== prev ) {uniques.push(arr[a]); instCount.push(1)}
else {instCount[instCount.length-1]++}
var prev = arr[a];}

Letter to Waste Connections TN

(Websites that allow you to contact them often use text forms in the pages themselves, so there’s often no record of your email. So I’m going to start posting pastes of the emails I write so that I have those records here)

Hi, I recently purchased a new house and I’m trying to figure out what’s going on with the trash pickup.

I’m not sure if my house is in the city or the county, it’s hard to tell from the maps because I think I’m right near the border.

You all have picked up my garbage one or two times, but I don’t know if that’s just remaining from the previous owners’ account.

What do I need to do to get the account for my house set up in my name? What is the cost?

On Art, Creativity, Etc.

It’s Friday, October 6, 2017. I’m at Lonesome Dove in the Old City area of Knoxville.

Not to be confused with Downtown Knoxville. There is a HUGE difference between the two and I would never be silly enough to mix them up… just kidding!

I met a lovely lady this evening named Cindy. As usual, because I was out in public and it terrifies me, I was drawing on my iPad. That’s what I do. Anyway, this woman complimented me on my “art,” saying she couldn’t possibly do anything similar.

This always upsets me. Sometimes I am creative and artistic, but when I am “drawing” on my iPad, 9 times out of 10 what I’m doing is really simple. Anyone could do it if they spent 5 minutes using the drawing app (with an open mind).

Here is the “picture” I was “drawing.” I think it turned out pretty cool, but I had to start over like 20 times to get it to where I liked it (and I’m not even 100% sure it’s done).

Anyway. I think anyone can create something beautiful, especially given the magic of technology. If you ever see me out in public, I would love to let you try my iPad so we can see what you come up with. It’s fun!