Don't calculate count multiple times