Implementation of size metric calculator