check that number of instances in file is a numeric