Change get_size to use headers instead of manually computing the size of each bucket