This is a matter of style, not grammar.
One common rule is to spell out numbers under ten and use numerals for numbers over ten.
So you would say "I ate three cookies" but "I have 14 first cousins."
If you are creating a chart or table, use numerals for all numbers.
Student or Learner