Count the number of colons properly in metadata header.