ability to do a custom count via model

review @byels