convert foundRows result to integer