made it so the number of occurrences field only takes positive integers