Add method to count filled bytes

Calculate the sum of element's filledBytes().