Get number of occupied columns of a string on terminal
