check if counts is None