Statistics for Regular Queries on Graph Databases