Allow the counter element to be passed in