ensure 'count' parameter is in range [1,10]