add test for or syntax into count method
implement for memory adapter or syntax for count method