Use by_uri view for counting