How are you calling rowCount ? can we see the code ?
and what view and model are you using ?