add count functionality