added attribute counter