How can we add the serial no functionality to Item family

Here in my office they are giving Serial No to the item family and it should be auto increment depending upon item family How can i achieve that