Size aware

@imlucas 
Now in the template schema, user can use `_$size()` to access the number of documents to generate in the current run.