Combinatorics, Automata and Number Theory: Factor complexity