async def count_registration_status():
_session_maker: sessionmaker = data['session_maker']
async with _session_maker() as session:
async with session.begin():
result = await session.execute(select(func.count()).where(User.registration_status == 'Зарегистрирован'))
registration_status = result.scalar()
return registration_status