add two functions for count operations