Pulling out code that gets the size of attribute data