modify getTotalCount (delete callback)