add counter to well. code refactoring to generalize double knockdown template.