Added number of statements executed as a return value throughout the api.