Implemented support for different count* types