re implement the count of shifts for an user