Add counter_cache to dependency count on applications