def extract_cluster_size(line):
 cluster_size = line.split(':')[(-1)]
 try:
  cluster_size = int(cluster_size)
 except ValueError:
  return 0
 return cluster_size

def extract_cluster_size ( line ) : cluster_size = line . split ( ':' ) [ ( - 1 ) ] try : cluster_size = int ( cluster_size ) except ValueError : return 0 return cluster_size
extract the size of a cluster from the header line .