rename database table count function to countRecord