quick and ugly solution to gc counting
finished through problem 6