Added count functionality using custom headers.