Add count variable to createDB