nums should be ints and get the counts right