Flowmetering and Custody transfer