added counter to stock count form Refs #285