Avoid checking type of count, use -1 as "not found".