add documentation for count