Make sure counts is an integer vector, when passed as a list