Added new methods to create and count data