add a function that count size of cuda record.