provide size of resource
Merge pull request #330 from doctrine/resource-size

provide size of resource