defining the count sketch and some types