https://stackoverflow.com/questions/...r-select-count

burada bu konu tartışılmış, ikinci bir sorguyla count etmek cok daha hızlıymış gibi okumanda fayda olabilir.