collapse some .view.count()'s to just .count()
use ".exists()" instead of ".count() > 0"