problem with tablex.count_map with custom comparison