add support for count and delete