Created method count in DAO to verify modification in categories and
make the proper changes.