parse_epoch_string function

Parse epoch string to the corresponding number of samples it represents.