Add macro for counting ABCD