Add num_colors function, uses tput (#11), towards 256 colors, #1