add count functions for zoo