n_decimals function

Count number of decimals