They consist of scattered hymns , a few services , approximately 40 anthems , and a motet .
He wrote 40 anthems , three service settings and a motet .