adding a count check for create