Statistics for RE-SPaM: Using regular expressions for sequential pattern mining in trajectory databases