std.count
Available inall subroutines.
Count the number of objects inside the given collection.
Example
sub vcl_recv { set req.http.Number-of-Headers = std.count(req.headers);}
WARNING: This function consumes workspace memory equal to the size of the collection being counted. While debugging memory overflow errors, beware that calling this function can itself cause or contribute to these sorts of problems.