Counts column-elements equaling any element contained by pool.
pool
int countElementOccurrencesOf(Set<E> pool) => where((element) => pool.contains(element)).length;