[-] fixed row count calculation