Added population counts

Now counts number of instances of each genome. Residual bug: some
negative population counts occur.